package com.xf.common.core.entity.system;


import com.baomidou.mybatisplus.annotation.TableField;
import com.xf.common.core.entity.dmp.DmpAuthUser;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;


/**
 * @author xufeng
 */
@Data
public class SystemUser extends DmpAuthUser {

    /**
     * 用户状态：启动
     */
    public static final Integer STATE_VALID = 1;
    /**
     * 用户状态：锁定
     */
    public static final Integer STATE_LOCK = 0;

    /**
     * 逻辑删除：有效
     */
    public static final Integer STATUS_VALID = 0;
    /**
     * 逻辑删除：删除
     */
    public static final Integer STATUS_DEL = 1;
    /**
     * 默认头像
     */
    public static final String DEFAULT_AVATAR = "default.jpg";
    /**
     * 默认密码
     */
    public static final String DEFAULT_PASSWORD = "1234qwer";
    /**
     * 性别男
     */
    public static final String SEX_MALE = "0";
    /**
     * 性别女
     */
    public static final String SEX_FEMALE = "1";
    /**
     * 性别保密
     */
    public static final String SEX_UNKNOW = "2";
    private static final long serialVersionUID = -4352868070794165001L;
    /**
     * 角色 ID
     */
    @NotBlank(message = "{required}")
    @TableField(exist = false)
    private String roleId;

    @TableField(exist = false)
    private String roleName;

    private List<String> roleList;
}
